<?php

namespace Home\Controller;

use Think\Controller;
use Home\Controller\PayApiController;
// 指定允许其他域名访问  
header('Access-Control-Allow-Origin:*');  
// 响应类型  
header('Access-Control-Allow-Methods:*');  
// 响应头设置  
header('Access-Control-Allow-Headers:x-requested-with,content-type');

class TestController extends PayApiController{
    public function endarriveCCBPay(){
        if(!IS_POST){
            datamsg(0,'非法操作');
        }
//        $user_id=I("post.user_id");
//        $token=I("post.token");
//        user_cinfo($user_id,$token);
        $orderid=I("post.orderid");
        if(empty($orderid)){
            datamsg(0,'订单号不能为空');
        }
        $price = I("post.price");
        if(empty($price)){
            datamsg(0,'价格不能为空');
        }
        parent::CCBPay($price,$orderid);
    }
}